import React from 'react'
import { Provider } from 'react-redux'
import { HashRouter as Router, Route, Switch } from 'react-router-dom'
import Home from './Home'
import Information from './Information'
import Message from './Message'
import My from './My'
import Publish from './Publish'
import store from './store'
import Dialog from './Dialog'
import InforDetail from './InforDetail'
import Resume from './Resume'
import Invite from './Invite'
import OrderList from './OrderList'

const App = () =>{
    return <Provider store={store}>
        <Router>
            <Switch>
                <Route exact path='/' component={Home}/>
                <Route path='/infor' component={Information}/>
                <Route path='/publish' component={Publish}/>
                <Route path='/message' component={Message}/>
                <Route path='/dialog' component={Dialog}/>
                <Route path='/my' component={My}/>
                <Route path='/infodetail' component={InforDetail}/>
                <Route path='/resume' component={Resume}/>
                <Route path='/invite' component={Invite}/>
                <Route path='/orderlist' component={OrderList}/>
            </Switch>
        </Router>
        

    </Provider>
}

export default App;